package com.cwd.arm.domain.repository.impl;

import com.cwd.arm.infrastructure.dao.MsgDao;
import com.cwd.arm.infrastructure.po.MsgPo;
import com.cwd.arm.domain.entity.MsgEntity;
import com.cwd.arm.domain.repository.MsgRepository;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
* Description:消息
* Created on 2022年01月15日
* @author  yan
*/
@Repository
public class MsgRepositoryImpl implements MsgRepository{

    @Autowired
    private MsgDao dao;

    private MsgPo convertToMsgPo(MsgEntity entity){
        MsgPo MsgPo = new MsgPo();
        BeanUtils.copyProperties(entity,MsgPo);
        return MsgPo;
    }

}
